//
//  SecondViewController.m
//  test
//
//  Created by kepuG on 17/1/19.
//  Copyright © 2017年 text. All rights reserved.
//

#import "SecondViewController.h"
#import "GQPageViewController.h"
#import "GGPayViewHUD.h"


@interface SecondViewController ()<GGPayViewHUDDelegate>

@end

@implementation SecondViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
//    NSDictionary *options =[NSDictionary dictionaryWithObject:[NSNumber numberWithInteger:11] forKey: UIPageViewControllerOptionSpineLocationKey];
//    
//    GQPageViewController *vc = [[GQPageViewController alloc] initWithTransitionStyle:UIPageViewControllerTransitionStylePageCurl navigationOrientation:UIPageViewControllerNavigationOrientationHorizontal options:options];
//    vc.view.frame = CGRectMake(0, 64, kScreen_Width, 120);
//    
//    NSMutableArray *pageContent = [NSMutableArray array];
//    
//    for ( int i = 0; i<10; i++) {
//        [pageContent addObject:[NSString stringWithFormat:@"%d",i]];
//    }
//    
//    vc.controsArr = pageContent;
//    
//    [self addChildViewController:vc];
//    [self.view addSubview:vc.view];
    
    
    
    
    // Do any additional setup after loading the view.
}

-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    [super touchesBegan:touches withEvent:event];
    [GGPayViewHUD show];
    [GGPayViewHUD sharedHUD].delegate = self;
}

-(void)ggPayViewHUDClickIndex:(NSInteger)index{
    DebugLog(@"控制器中===>%ld",index);
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
